/**
 * 
 */
package com.gmail.sabujdas.patterns.absfactory;

import com.gmail.sabujdas.patterns.absfactory.model.Acid;
import com.gmail.sabujdas.patterns.absfactory.model.Salt;


/**
 * @author Sabuj Das | sabuj.das@gmail.com
 *
 */
public abstract class ChemicalFactory {

	
	public static ChemicalFactory createInstance(ChemicalType chemicalType){
		if(ChemicalType.ORGANIC == chemicalType){
			return new OrganicFactory();
		}
		return new InorganicFactory();
	}
	
	public abstract Salt createSalt(String name);
	public abstract Acid createAcid(String name);
	
}
